﻿<!DOCTYPE html>
<html>
<head>
    <!--<base href="../" />-->
    <meta charset="UTF-8">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="/static/css/common/reset.css" />
    <link rel="stylesheet" href="/static/css/associate.css" />
    <link rel="stylesheet" href="/static/css/sweetalert.min.css" />
    <link rel="stylesheet" href="/static/js/simditor/styles/simditor.css" />
    <link rel="stylesheet" href="/static/js/simditor/styles/simditor-html.css" />
    <link rel="stylesheet" href="/static/css/jquery-validate.css" />
    <title>企业首页</title>
</head>
<body>
    <div class="associate" ng-app="myApp">
        <div id="divHeader"></div>
        <section class="assoc-content container clearfix">
            <div class="assoc-c-left fl">
                <div id="divNavigation"></div>
            </div>
            <div class="assoc-c-right fr" ng-controller="Ctrl">

                <div class="assoc-cr-information" ng-model="names">
                    <div class="assoc-cr-resiveInfo ">
                        <form id="secondStepForm">
                            <div class="assoc-crb-resiveList">
                                <label>姓名： </label>
                                <div class="form_control">
                                    <input type="text" class="required" data-tip="请输入姓名" data-valid="isNonEmpty" data-error="姓名不能为空" placeholder="请输入姓名" name="name" value="{{names.ChargeName}}" />
                                </div>
                            </div>
                            <div class="assoc-crb-resiveList">
                                <label>性别： </label>
                                <div class="form_control">
                                    <span class="required" data-valid="isChecked" data-tip="性别必选" data-error="性别必选" data-type="radio">
                                        <input type="radio" name="sex" value="male" checked>男
                                        <input type="radio" name="sex" value="female">女
                                    </span>
                                </div>
                            </div>
                            <div class="assoc-crb-resiveList">
                                <label>手机：</label>
                                <div class="form_control">
                                    <input type="text" class="required" data-valid="isNonEmpty||isMobile" data-tip="请输入手机" data-error="手机不能为空||手机格式不正确" placeholder="请输入手机" value="{{names.Phone}}" name="phone" />
                                </div>
                            </div>
                            <div class="assoc-crb-resiveList">
                                <label>QQ：</label>
                                <div class="form_control">
                                    <input type="text" class="required" data-valid="isNonEmpty||onlyInt" data-tip="请输入QQ" data-error="QQ不能为空||QQ格式不正确" placeholder="请输入QQ" value="{{names.QQ}}" name="qq" />
                                </div>
                            </div>
                            <div class="assoc-crb-resiveList">
                                <label>微信：</label>
                                <div class="form_control">
                                    <input type="text" class="required" data-valid="isNonEmpty||isMobile" data-tip="请输入微信" data-error="微信不能为空||微信格式不正确" placeholder="请输入微信" value="{{names.WeChart}}" name="wechart" />
                                </div>
                            </div>
                            <div class="assoc-crb-resiveList">
                                <label>邮箱：</label>
                                <div class="form_control">
                                    <input type="text" class="required" data-valid="isNonEmpty||isEmail" data-tip="请输入邮箱" data-error="邮箱不能为空||邮箱格式不正确" placeholder="请输入邮箱" value="{{names.Email}}" name="email" />
                                </div>
                            </div>
                            <p class="assoc-crb-cardTitle">重新提交认证证件<span class="colorRed"></span></p>
                            <ul class="uploadMulBtn clearfix">
                                <!-- <li>
                                    <a href="javascript:;" class="up-fileBook" id="up-fileBook">
                                        身份证正面
                                        <div class="form_control file">
                                            <input type="file" data-valid="isNonEmpty" data-tip="请上传身份证正面" data-error="请上传身份证正面" name="IDFront" class="reg-tauLeft-btnInput" />
                                        </div>
                                    </a>
                                    <h3 class="up-fileNameBook">
                                        <label>已添加附件：</label>
                                        <p class="up-file-content">
                                        </p>
                                    </h3>
                                </li>
                                <li>
                                    <a href="javascript:;" class="up-fileBook" id="up-filePhoto">
                                        身份证反面
                                        <div class="form_control file">
                                            <input type="file" data-valid="isNonEmpty" data-tip="请上传身份证反面" data-error="请上传身份证反面" name="IDOpposite" class="reg-tauLeft-btnInput" />
                                        </div>
                                    </a>
                                    <h3 class="up-fileNameBook">
                                        <label>已添加附件：</label>
                                        <p class="up-file-content">
                                        </p>
                                    </h3>
                                </li> -->
                                <li>
                                    <a href="javascript:;" class="up-fileBook" id="up-filePhoto">
                                        营业执照
                                        <div class="form_control file">
                                            <input type="file" data-valid="isNonEmpty" data-tip="请上传营业执照" data-error="请上传营业执照" name="License" class="reg-tauLeft-btnInput" />
                                        </div>
                                    </a>
                                    <h3 class="up-fileNameBook">
                                        <label>已添加附件：</label>
                                        <p class="up-file-content">
                                        </p>
                                    </h3>
                                </li>

                            </ul>

                            <input type="button" id="btnSubmit" class="assoc-crb-btn" value="确认修改" />
                        </form>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <div id="divFooter"></div>

    <script type="text/javascript" src="/static/js/ref/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="/static/js/self/common.js"></script>
    <script type="text/javascript" src="/static/js/ref/angular.min.js"></script>
    <script type="text/javascript" src="/static/js/ref/sweetalert.min.js"></script>
    <script src="/static/js/self/jquery-validate.js"></script>
    <script>

        common.validator($('form'));

        $("#divHeader").load("/wuc/header.html");
        $("#divFooter").load("/wuc/footer.html");
        $("#divNavigation").load("/wuc/navigation.html");


        common.CreateController({ name: 'Ctrl', url: '/api/Enterprise/GetInCharge', objType: 'dict' });

        common.ValidateFormJQ('secondStepForm', 'btnSubmit', submitSecondStep)
        function submitSecondStep() {
            common.FormAjax({ type: 'Post', url: '/api/Enterprise/UpdateCompany', ID: "secondStepForm", sMethod: AfterAjax });
        };
        function AfterAjax(ctx) {

            if (ctx == null) {
                common.alertMessage("无数据.");
                return;
            }

            var str = ctx.ResponseStr.toString();
            switch (str) {
                case "OK":
                    window.location = "./incharge.html";
                    break;
            }
        }

    </script>
</body>

</html>

